import { Application } from 'egg';

export default (app: Application) => {
    const { CHAR, INTEGER } = app.Sequelize;
    const model = app.model.define('ReactActivity', {
        react_activity_id: { type: CHAR(32), primaryKey: true },//主键
        user_id: CHAR(32),//用户id
        school_id: CHAR(32),//学校id
        react_activity_num: {type:INTEGER(11),defaultValue:0},//新活动数
        is_delete: CHAR(1)
    }, { tableName: 't_react_activity' });
    return model;
};
export class ReactActivity {
    react_activity_id: string;
    user_id: string;
    school_id: string;
    react_activity_num: string;
    is_delete: string;
}